<table id="redpacket_table" ref="RedPacket" class="table" width="100%" border="0" cellspacing="1" cellpadding="0">
		<thead class="state-header">
		  <tr>
		  
		  	  <td  width="40" tdid="0" align="center">
			 	选择
			  </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"id")||fields=="*"||(!fields && true)}}' tdid="1" ref="id" flagKey='true'  title="编号">编号
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"merchant")||fields=="*"||(!fields && true)}}' tdid="2" ref="merchant"   title="品牌信息">品牌信息
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"uid")||fields=="*"||(!fields && true)}}' tdid="3" ref="uid"   title="用户编号">用户编号
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"redEnveloper")||fields=="*"||(!fields && true)}}' tdid="4" ref="redEnveloper"   title="发红包人">发红包人
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"quantity")||fields=="*"||(!fields && true)}}' tdid="5" ref="quantity"   title="红包数量">红包数量
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"product")||fields=="*"||(!fields && true)}}' tdid="6" ref="product"   title="余额产品">余额产品
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"types")||fields=="*"||(!fields && true)}}' tdid="7" ref="types"   title="红包类型">红包类型
			 </td>
			 <td width="{{fields=='*'?'140':''}}" lz:if='{{lz.idin(fields,"validity")||fields=="*"||(!fields && true)}}' tdid="8" ref="validity"   title="默认有效期">默认有效期
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"recipients")||fields=="*"||(!fields && true)}}' tdid="9" ref="recipients"   title="已领取人数">已领取人数
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"unique")||fields=="*"||(!fields && true)}}' tdid="10" ref="unique"   title="唯一标识">唯一标识
			 </td>
			 <td width="{{fields=='*'?'140':''}}" lz:if='{{lz.idin(fields,"updateTime")||fields=="*"||(!fields && true)}}' tdid="11" ref="updateTime"   title="修改时间">修改时间
			 </td>
			 <td width="{{fields=='*'?'140':''}}" lz:if='{{lz.idin(fields,"addTime")||fields=="*"||(!fields && true)}}' tdid="12" ref="addTime"   title="发放时间">发放时间
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"status")||fields=="*"||(!fields && true)}}' tdid="13" ref="status"   title="状态">状态
			 </td>
			<td  width="105"  class="operation" tdid="14" ref="operation">
				&nbsp;
			</td>
		  </tr>
		 </thead>	
		 <tbody>
		 
		  <tr lz:for="{{list}}" id="{{item.id}}" >
		  	<td class="td-checkbox" align="center">
				<input class="check" name="check" type="checkbox" value="{{item.id}}"/>
			</td>
			 
				<td lz:if='{{lz.idin(fields,"id")||fields=="*"||(!fields && true)}}' ref="id" class="inc {{index%2==0?'odd':'even'}} td  node">
					 
					 
					 	{{item.id$ || item.id}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"merchant")||fields=="*"||(!fields && true)}}' ref="merchant" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.merchant}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/business/merchant.edit.html?key={{item.merchant}}')" href="javascript:void(0);">
					 	{{item.merchant$ || item.merchant}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"uid")||fields=="*"||(!fields && true)}}' ref="uid" class="inc {{index%2==0?'odd':'even'}}  ">
					 
					 
					 	{{item.uid$ || item.uid}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"redEnveloper")||fields=="*"||(!fields && true)}}' ref="redEnveloper" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.redEnveloper}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/users/member.edit.html?key={{item.redEnveloper}}')" href="javascript:void(0);">
					 	{{item.redEnveloper$ || item.redEnveloper}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"quantity")||fields=="*"||(!fields && true)}}' ref="quantity" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.quantity$ || item.quantity}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"product")||fields=="*"||(!fields && true)}}' ref="product" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.product}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/products/product.edit.html?key={{item.product}}')" href="javascript:void(0);">
					 	{{item.product$ || item.product}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"types")||fields=="*"||(!fields && true)}}' ref="types" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.types$ || item.types}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"validity")||fields=="*"||(!fields && true)}}' ref="validity" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.validity$ || item.validity}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"recipients")||fields=="*"||(!fields && true)}}' ref="recipients" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.recipients$ || item.recipients}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"unique")||fields=="*"||(!fields && true)}}' ref="unique" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.unique$ || item.unique}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"updateTime")||fields=="*"||(!fields && true)}}' ref="updateTime" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.updateTime$ || item.updateTime}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"addTime")||fields=="*"||(!fields && true)}}' ref="addTime" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.addTime$ || item.addTime}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"status")||fields=="*"||(!fields && true)}}' ref="status" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.status$ || item.status}}
				</td>
			<td class="operation {{index%2==0?'odd':'even'}}">
				<a lz:if="{{canEdit}}" onclick='navigate("/admin/products/redpacket.edit.html",{edittype:"update",id:"{{item.id}}"},window)' href="javascript:void(0)">修改</a>
				<a lz:if="{{canView}}" class="inc-h" onclick='navigate("/admin/products/redpacket.edit.html",{edittype:"detail",id:"{{item.id}}"},window)' href="javascript:void(0);">详情</a>
			</td>
		  </tr>
		 
		 </tbody>
		 		 
	  </table>